import React, { useEffect } from 'react'
import useUserStore from '../../store/useUserStore'
import useLayoutStore from '../../store/layoutStore'

const Home = () => {
  // const { getMenus } = useUserStore((state) => ({ getMenus: state.getMenus }))

  // useEffect(() => { getMenus() }, [])
  const { isLoadingMenus } = useLayoutStore((state) => ({ isLoadingMenus: state.isLoadingMenus }))
  return (
    <div style={{ color: 'red' }}>
      Home {isLoadingMenus ? '2' : '1'}
    </div>
  )
}

export default Home
